<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-show</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="case5-demo5">
    <h1 v-show="Showdisplay" v-on:click="ShowClick">显示</h1>
    <h1 v-show="ShowHide" v-on:click="ShowClick">隐藏</h1>
</div>
<script type="text/javascript">
    var case5Demo=new Vue({
        el:"#case5-demo5",
        data:{
            Showdisplay:true,
            ShowHide:false
        },
        methods:{
         ShowClick:function () {
             case5Demo.Showdisplay=!case5Demo.Showdisplay
             case5Demo.ShowHide=!case5Demo.ShowHide
         }
        }
    })
</script>
</body>
</html>